﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace DataEntity
{
    public class ChangShuiEntity : INotifyPropertyChanged
    {
        #region PropertyChanged事件
        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
        #endregion

        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        

        private string _JiangmoNo;
        public string JiangmoNo
        {
            get { return _JiangmoNo; }
            set
            {
                if (_JiangmoNo != value)
                {
                    _JiangmoNo = value;
                    this.OnPropertyChanged("JiangmoNo");
                }
            }
        }

        private float _Diameter;

        public float Diameter
        {
            get { return _Diameter; }
            set
            {
                if (_Diameter != value)
                {
                    _Diameter = value;
                    this.OnPropertyChanged("Diameter");
                }
            }
        }

        private string _LuoJuRate;
        public string LuoJuRate
        {
            get { return _LuoJuRate; }
            set
            {
                if (_LuoJuRate != value)
                {
                    _LuoJuRate = value;
                    this.OnPropertyChanged("LuoJuRate");
                }
            }
        }

        private string _PanMianRate;
        public string PanMianRate
        {
            get { return _PanMianRate; }
            set
            {
                if (_PanMianRate != value)
                {
                    _PanMianRate = value;
                    this.OnPropertyChanged("PanMianRate");
                }
            }
        }

        private int _ProjectID;
        public int ProjectID
        {
            get { return _ProjectID; }
            set { _ProjectID = value; }
        }

        private string _ExperimentType;
        public string ExperimentType
        {
            get { return _ExperimentType; }
            set { _ExperimentType = value; }
        }
        
        

        public string Text
        {
            get { return ToString(); }
        }

        public override string ToString()
        {
            return "浆模编号:" + JiangmoNo + ";直径:" + Diameter + ";螺距比:" + LuoJuRate + ";盘面比:" + PanMianRate;
        }
    }
}
